!!!
%html
  %head{:lang => "zh-cmn-Hans"}
    %meta{:charset => "UTF-8"}/
    %meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}/
    %meta{:content => "width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no", :name => "viewport"}
    %meta{name: 'keywords', content: '灰名单,黑名单,汽车租赁黑名单,都来租,信租会,中国汽车租赁黑名单网,汽车租赁服务,租赁风控,丢车查询,骗租黑名单,信租会,信租网,骗车名单,骗租举报,身份证查询,骗租人查询,灰名单查询'}
    %meta{name: 'description', content: '灰名单专注汽车租赁行业，是中国第一家专业的汽车租赁服务风控平台。会名单以风控环节为基础，为中小汽车租赁企业免费提供骗租灰名单，并协助企业追回被骗、被偷车辆，实现全国租赁行业传统门店互联互通，打造安全、可靠、诚信租赁出行平台。'}

    %title 灰名单-中国第一家专业的汽车租赁服务风控平台
    -#= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true
    -#= javascript_include_tag 'application', 'data-turbolinks-track' => true
    
    %link{rel:"icon", href:"#{ufile_public_src_static('favicon.png')}", type:"image/x-icon"}
    %link{rel:"shortcut icon", href:"#{ufile_public_src_static('favicon.png')}", type:"image/x-icon"}

    
    = stylesheet_link_tag     '//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css'
    =# stylesheet_link_tag     '//cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css'

    -if Rails.env == 'development'
      = stylesheet_link_tag     'graylist.css'
    -if Rails.env == 'production'
      = stylesheet_link_tag   ufile_public_src_static("graylist.css")


    /[if lt IE 9]
      = javascript_include_tag      "//cdn.bootcss.com/html5shiv/r29/html5.min.js"
      = javascript_include_tag      "//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"

    = javascript_include_tag     '//cdn.bootcss.com/jquery/1.11.3/jquery.min.js'
    = javascript_include_tag     '//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js'
    = javascript_include_tag     '//cdn.bootcss.com/jquery-ujs/1.1.0/rails.min.js'
    -if Rails.env == 'development'
      = javascript_include_tag      "graylist.js"
    -if Rails.env == 'production'
      = javascript_include_tag      ufile_public_src_static("graylist.js")

    = csrf_meta_tags


  %body
    %header.hidden-print.hidden-xs.hidden-sm
      %nav.navbar.navbar-default{:role => "navigation", style:'background: #737373;border-color: #737373;'}
        .container
          .navbar-header
            %button.navbar-toggle{"data-target" => ".navbar-header-collapse", "data-toggle" => "collapse", :type => "button"}
              %span.icon-bar
              %span.icon-bar
              %span.icon-bar
            %a#header_logo.navbar-brand{:href => "/", :title => "灰名单", style:'padding:5px'}
              =image_tag ufile_public_src_static('index_logo.png')
          
          .collapse.navbar-collapse.navbar-header-collapse
            %ul.nav.navbar-nav
              %li
                %span
                  %em
                    %i.glyphicon.glyphicon-bullhorn
                  &nbsp今日新增
                  %em= today_count
                  条灰名单 共计
                  %em= CreditRecord.count + 12580
                  灰名单记录

            
            %ul.nav.navbar-nav.navbar-right
              - unless admin_signed_in?
                - if user_signed_in?
                  %li.sign-in
                    = link_to '['+current_user.mobile+']', user_profile_path
                  %li.sign-up
                    = link_to '注销用户', destroy_user_session_path, :method => :delete
                - else
                  %li.sign-in
                    %a{href:"#{new_user_session_path}"}
                      %i.glyphicon.glyphicon-user
                      登录
                  %li.sign-up
                    %a{href:"#{new_user_registration_path}"}
                      %i.glyphicon.glyphicon-pencil
                      注册
              - else
                %li.sign-in
                  = link_to '后台操作', credit_records_path
                %li.sign-up
                  = link_to '注销管理员', destroy_admin_session_path, :method => :delete

      -#.container-fluid
        .container
          .row
            .col-md-4.col-sm-5.col-xs-5
              .header-left
                %a{href: "/"}
                  = image_tag ufile_public_src_static('index_logo.png'), alt: '灰名单', title: '灰名单'
            .col-md-5.hidden-sm.hidden-xs
              .header-center
                %span
                  %em
                    %i.glyphicon.glyphicon-bullhorn
                  &nbsp今日新增
                  %em= today_count
                  条灰名单 共计
                  %em= CreditRecord.count + 12580
                  灰名单记录
            .col-md-3.col-sm-7.col-xs-7
              .header-right
                %ul
                  - unless admin_signed_in?
                    - if user_signed_in?
                      %li.sign-in
                        = link_to '['+current_user.mobile+']', user_profile_path
                      %li.sign-up
                        = link_to '注销用户', destroy_user_session_path, :method => :delete
                    - else
                      %li.sign-in
                        %span.glyphicon.glyphicon-user{"aria-hidden" => "true"}
                        = link_to '登录', new_user_session_path
                      %li.sign-up
                        %span.glyphicon.glyphicon-pencil{"aria-hidden" => "true"}
                          = link_to '注册', new_user_registration_path
                  - else
                    %li.sign-in
                      = link_to '后台操作', credit_records_path
                    %li.sign-up
                      = link_to '注销管理员', destroy_admin_session_path, :method => :delete
    %header.hidden-md.hidden-lg{style:'background-color:#737373;'}
      .container{style:'padding:0;'}
        %ul{style:'padding-left:0;'}
          %li
            %a#header_logo.navbar-brand{:href => "/", :title => "灰名单", style:'padding:5px'}
              =image_tag ufile_public_src_static('index_logo.png')
        %ul{style:'padding-left:0;float:right'}
          - unless admin_signed_in?
            - if user_signed_in?
              %li.inline
                = link_to '['+current_user.mobile+']', user_profile_path
              %li.inline
                = link_to '注销用户', destroy_user_session_path, :method => :delete
            - else
              %li.inline
                %a{href:"#{new_user_session_path}"}
                  %i.glyphicon.glyphicon-user
                  登录
              %li.inline
                %a{href:"#{new_user_registration_path}"}
                  %i.glyphicon.glyphicon-pencil
                  注册
          - else
            %li.inline
              = link_to '后台操作', credit_records_path
            %li.inline
              = link_to '注销管理员', destroy_admin_session_path, :method => :delete
    .container.content
      - if notice
        %p.notice.alert.alert-success{role:"alert"}= notice
      - if alert
        %p.alert.alert-danger{role:"alert"}= alert
      = yield
    %footer
      %ul
        %li
          =link_to '关于我们',show_about_us_path
          -#%a{:href => "#"} 关于我们
        %li
          =link_to '服务条款',show_service_term_path
          -#%a{:href => "#"} 服务条款
        %li
          =link_to '联系我们',show_contact_us_path
          -#%a{:href => "#"} 联系我们
        -#%li.last
          - unless user_signed_in?
            = link_to '管理员', new_admin_session_path
  
  - if Rails.env == 'production'
    :javascript
      var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
      document.write(unescape("%3Cspan id='cnzz_stat_icon_1257171074'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/q_stat.php%3Fid%3D1257171074' type='text/javascript'%3E%3C/script%3E"));



